import { get, post } from '@/utils/http';

export const login = (data) => post('/api/login', data);
export const getUserInfo = (data) => get('/api/userinfo', data);
/**
 * 搜索车辆
 * @param {Object} data
 * @param {String} data.keyword 关键字
 * @returns Promise
 */
export const searchCar = (data) => post('/api/search-car', data);
export default {
  getUserInfo,
  login,
  searchCar
};
